using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FreeLancer.HRB.Core;

namespace FreeLancer.HRB.WebApp.category
{
  /// <summary>
  /// Work around because DevExpress controls vs. rewrite url
  /// </summary>
  public partial class Post : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      if (Request.QueryString["id"] != null && Request.QueryString["id"].Length == 36)
      {
        Response.Redirect(Utils.RelativeWebRoot + "Post.aspx?id=" + Request.QueryString["id"], true);
      }
      else
      {
        Response.Redirect(Utils.RelativeWebRoot + "Error404.aspx", true);
      }
    }
  }
}
